package com.wujiansima.renyisima.demo.demo3;

import java.util.concurrent.Callable;

class MyThread1 extends Thread {
    public void run(){
        for (int i = 0; i < 100; i++) {
            System.out.println("我执行了" + i);
        }
    }
}
class MyRunnable2 implements Runnable{

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println("wo s sss"+ i);
        }

    }
}
class MyCallable3 implements Callable<String>{

    @Override
    public String call() throws Exception {
        for (int i = 0; i < 100; i++) {
            System.out.println("heiheihei" + i);
        }
        return "heinima";

    }
}